<!DOCTYPE html>
<html lang="en"  xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商家入驻审核</title>
    <script language="JavaScript" src="/admin/js/jquery.js"></script>
    <script>
        function abc(a) {
            var name = $(a).attr("id");
            window.location.href="/admin/showshopping.htm?taskid="+name;
        }
    </script>
</head>
<body>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
        <tr>
            <td width="15%" height="20" bgcolor="d3eaef"><div align="center"><span class="STYLE10">任务ID</span></div></td>
            <td width="25%" height="20" bgcolor="d3eaef"><div align="center"><span class="STYLE10">任务名称</span></div></td>
            <td width="20%" height="20" bgcolor="d3eaef"><div align="center"><span class="STYLE10">创建时间</span></div></td>
            <td width="20%" height="20" bgcolor="d3eaef"><div align="center"><span class="STYLE10">申请人</span></div></td>
            <td width="20%" height="20" bgcolor="d3eaef"><div align="center"><span>操作</span></div></td>
        </tr>
        <tr th:each="m:${listh}">
            <td height="20" bgcolor="#FFFFFF"><div align="center" th:text="${m.taskid}"></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" th:text="${m.taskname}"></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" th:text="${#dates.format(m.addtime,'yyyy-MM-dd HH:mm:ss')}"></div></td>
            <td height="20" bgcolor="#FFFFFF"><div align="center" th:text="${m.realname}"></div></td>
            <td height="20" bgcolor="#FFFFFF" align="center"><button th:id="${m.taskid}" onclick="abc(this)">开始任务</button></td>
        </tr>
    </table>
</body>
</html>